#ifndef glPictLabel_h__
#define glPictLabel_h__

#include "./glTypes.h"
#include "./glObject.h"

namespace GLES
{
	class Painter;
	class Pict;
	class PictLabel : public Object
	{
		SetGetProperty(Size,SizeI,_size);
		SetGetProperty(Point,PointI,_point);
		SetGetProperty(PictRect,RectI,_pictRect);
		SetGetProperty(PictDestroy,Bool,_Destroy);
		public:
			PictLabel();
			~PictLabel();
			Bool createFrom(Pict* pict,PointI& point,SizeI& size,RectI* pictRect = NULL,Bool pictDestroy = false);
			Bool createFrom(char* name,PointI& point,SizeI* size  = NULL,RectI* pictRect = NULL);
			Void draw(Painter* painter);
			Void movePosition(Vector2I& vect);
	protected:
			Pict* _pict;
	};
}
#endif // glPictLabel_h__